package com.smile.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smile.common.utils.PageUtils;
import com.smile.member.entity.MemberEntity;
import com.smile.member.exception.PhoneExitException;
import com.smile.member.exception.UserExitException;
import com.smile.member.vo.MemberLoginVo;
import com.smile.member.vo.MemberRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author smile
 * @email hongshengmo@163.com
 * @date 2022-03-25 13:35:59
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registerUser(MemberRegisterVo vo);

    void checkPhoneUnique(String phone) throws PhoneExitException;

    void checkNameUnique(String userName) throws UserExitException;

    MemberEntity loginUser(MemberLoginVo vo);
}

